package com.etpjava.service;

import java.util.HashMap;
import java.util.List;

import com.etpjava.model.Train;
import com.etpjava.util.Page;

public interface TrainService {
   void addTrain(Train train);
   List<Train> findByIds(Integer id); 
   void findByTitle(Page pagelist,String title);
   void findAll(Page pagelist);
   Train findById(int id);
   Page findByIdRange(Integer id1,Integer id2,int pagenum);
   void modifyTrain(Train train);
   void delete(Integer id);
   List<Train> findId(Integer id1,Integer id2); 
   void findFuzzyForPage(Page pagelist, HashMap<String, String> sw);
   void findByIdRange(HashMap<String, String> sw, Page pagelist);
}
//List<Train> findByfuzzy(String name,String address,String content); 
//List<Train> findByTitle(String title); 
//Page findAll(int pagenum);
//List<Train> findAll(); 
//Page findByTitle(String title,int pagenum);
//Page findFuzzyForPage(HashMap<String, String> sw,int pagenum);